package com.yzc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yzc.mapper.WebsocketMapper;
import com.yzc.model.query.system.WebsocketReq;
import com.yzc.model.vo.system.WebsocketUsersVo;
import com.yzc.service.WebsocketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WebsocketServiceImpl extends ServiceImpl<WebsocketMapper, WebsocketReq> implements WebsocketService {
    @Autowired
    private WebsocketMapper websocketMapper;

    @Override
    public List<WebsocketUsersVo> loadUsersList(Integer id) {
        return websocketMapper.loadUsersList(id);
    }

    @Override
    public List<WebsocketUsersVo> selectUserByUsername(String username) {
        return websocketMapper.selectUserByUsername(username);
    }
}
